#region Imports

using System;

#endregion

namespace IEC.ColumnOrdering.SP2007.Deployment
{

    /// <summary>
    /// Represents a SharePoint field.
    /// </summary>
    public class Field
    {

        #region Properties - Instance Member

        #region Properties - Instance Member - Field Members

        /// <summary>
        /// Gets the name of the list.
        /// </summary>
        /// <value>
        /// The name of the list.
        /// </value>
        public string ListName
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the name of the field.
        /// </summary>
        /// <value>
        /// The name of the field.
        /// </value>
        public string Name
        {
            get;
            private set;
        }

        #endregion

        #endregion

        #region Methods - Instance Member

        #region Methods - Instance Member - Field Members

        #region Methods - Instance Member - Field Members - (constructors)

        /// <summary>
        /// Initializes a new instance of the Field class.
        /// </summary>
        /// <param name="name">
        /// The name of the field.
        /// </param>
        public Field(string name) : this(string.Empty, name)
        {
        }

        /// <summary>
        /// Initializes a new instance of the Field class.
        /// </summary>
        /// <param name="listName">
        /// The name of the list.
        /// </param>
        /// <param name="name">
        /// The name of the field.
        /// </param>
        public Field(string listName, string name) : base()
        {
            this.ListName = listName;
            this.Name = name;
        }

        #endregion

        #endregion

        #endregion

    }

}
